#include"proc.h"

void procbar()
{
  int i = 0;
  char proc[102];
  char proc1[] = "|/-\\";
  memset(proc,'\0',sizeof(proc));
  
  while(i<=100)
  {
    printf("[%-100s][%3d%%][%c]\r",proc, i, proc1[i%4]);
    fflush(stdout);
    proc[i] = '#';
    usleep(100000);
    i++;
  }
  printf("\n");
}
